package com.youbug.mall.product_pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youbug.common.vo.QueryVo;
import com.youbug.mall.product_pms.entity.PmsAttrGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youbug.mall.product_pms.entity.PmsAttr;
import com.youbug.mall.product_pms.vo.AttrGroupRelationVo;
import com.youbug.mall.product_pms.vo.SpuItemAttrGroupVo;

import java.util.List;

/**
 * <p>
 * 属性分组 服务类
 * </p>
 *
 * @author youbug
 * @since 2023-07-08
 */
public interface IAttrGroupService extends IService<PmsAttrGroup> {

    IPage<PmsAttrGroup> getAttrGroupPage(QueryVo<PmsAttrGroup> queryVo);

    List<PmsAttr> getRelationAttr(QueryVo<Long> queryVo);

    Boolean deleteRelation(List<AttrGroupRelationVo> relationVos);

    IPage<PmsAttr> getNoAttRelation(QueryVo<PmsAttr> queryVo);

    List<PmsAttrGroup> getAttrGroupWithAttrByCatalogId(Long catalogId);

    Boolean addRelations(List<AttrGroupRelationVo> relationVos);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId,Long catalogId);
}
